//---------------------------------------------------------------------
// <copyright file="CsdlFunctionReferenceExpression.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    internal class CsdlFunctionReferenceExpression : CsdlExpressionBase
    {
        private readonly string function;

        public CsdlFunctionReferenceExpression(string function, CsdlLocation location)
            : base(location)
        {
            this.function = function;
        }

        public override Expressions.EdmExpressionKind ExpressionKind
        {
            get { return Expressions.EdmExpressionKind.FunctionReference; }
        }

        public string Function
        {
            get { return this.function; }
        }
    }
}
